const { ipcMain,dialog,app } = require('electron')

ipcMain.handle('test',(event,msg)=>{
    dialog.showOpenDialog({
        buttonLabel: '选择',
        defaultPath: app.getPath('desktop'),
        properties: ['multiSelections', 'createDirectory', 'openFile', 'openDirectory']
    }).then((result)=> {
        console.log(result.filePaths)
    })
    console.log(msg);
    return msg
})
